outmap
fun <N, T> ValidationResult<T>.outmap(to: Function<T, ValidationResult<out N>>): ValidationResult<N>
Maps this validation's stored value to a new type using a mapping function
Return
Validation with the newly mapped N value and whatever errorContext might be stored in this validation
Author
fzzyhmstrs
Since
Unknown
Parameters
N
new type to store
T
old type stored in this validation to map
to
Function